/** 
* Copyright (C) 2012-2017 ZEEI Inc.All Rights Reserved.
* 项目名称：efs
* 文件名称：AlarmCodeController.java
* 包  名  称：com.zeei.efs.controller
* 文件描述：TODO 请修改文件描述
* 创建日期：2017年6月8日下午1:47:43
* 
* 修改历史
* 1.0 chenhuiqiong 2017年6月8日下午1:47:43 创建文件
*
*/


package com.zeei.app.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zeei.app.service.OtherLicensInfoService;
import com.zeei.app.vo.CorrectRuleVO;
import com.zeei.app.vo.NoiseLimitVO;
import com.zeei.app.vo.SolidLimitVO;
import com.zeei.common.annotation.SysLog;
import com.zeei.common.controller.BasicController;
import com.zeei.common.enums.LogType;
import com.zeei.common.vo.ResultRowsVO;


/**
 * 
* @类型名称：OtherLicensInfoController
* @类型描述：其他许可内容
* @功能描述：其他许可内容
* @创建作者：chenhuiqiong
*
 */
@Controller
@RequestMapping("/app/otherLicensInfo")
public class OtherLicensInfoController extends BasicController{
	@Autowired
	private OtherLicensInfoService otherLicensInfoService;
	
	@RequestMapping(value = "/correctRule", method = RequestMethod.POST)
	@ResponseBody
	@SysLog(text = "其他许可内容-改正规定查询", type = LogType.View)
	public ResultRowsVO<CorrectRuleVO> queryCorrectRule(CorrectRuleVO correctRule){
	    List<CorrectRuleVO> correctRuleList= otherLicensInfoService.queryCorrectRule(correctRule);
	    return createResultRowsVO(correctRuleList, true, "",correctRuleList.size());
	}
	
	@RequestMapping(value = "/noiseLimit", method = RequestMethod.POST)
	@ResponseBody
	@SysLog(text = "其他许可内容-噪声排放信息查询", type = LogType.View)
	public ResultRowsVO<NoiseLimitVO> queryNoiseLimit(NoiseLimitVO noiseLimit){
	    List<NoiseLimitVO> noiseLimitList = otherLicensInfoService.queryNoiseLimit(noiseLimit);
	    return createResultRowsVO(noiseLimitList, true, "",noiseLimitList.size());
	}
	
	@RequestMapping(value = "/solidLimit", method = RequestMethod.POST)
	@ResponseBody
	@SysLog(text = "其他许可内容-固体废物排放信息查询", type = LogType.View)
	public ResultRowsVO<SolidLimitVO> querySolidLimit(SolidLimitVO solidLimit){
	    List<SolidLimitVO> solidLimitVOList = otherLicensInfoService.querySolidLimit(solidLimit);
	    return createResultRowsVO(solidLimitVOList, true, "",solidLimitVOList.size());
	}

}

